<?php

namespace IDock\Insurance\CHAC\Request;

use IDock\Http\RequestFormat;
use IDock\Insurance\CHAC\Response\ValidateCarResponse;

class ValidateCarRequest extends AllCHACRequest
{
    protected $route = 'new/vhl/verifyCarCode';

    protected $response = ValidateCarResponse::class;

    protected $urlTip = '验车码接口';

    protected $format = RequestFormat::JSON;

    public function generate(): array
    {
        return [
            'requestHead' => [
                'requestType' => '',
                'userName' => $this->visitor->argc['userName'] ?? '',
                'passWord' => $this->visitor->argc['passWord'] ?? '',
                'partnerCode' => $this->visitor->argc['partnerCode'] ?? '',
                'queryId' => $this->getRequestId(),
            ],
            'requestBody' => [
                'startTime' => date('Y-m-d'),
                'endTime' => date('Y-m-d')
            ]
        ];
    }
}
